home *** CD-ROM | disk | FTP | other *** search
-
- hlsl("
-
- #define NSAMPLES 8
-
- sampler Image: register(s0);
-
- struct VS_OUTPUT
- {
- float4 Position : POSITION;
- float2 TexCoord[NSAMPLES] : TEXCOORD0;
- };
-
- half4 main(VS_OUTPUT IN) : COLOR
- {
- half4 c = 0;
- for(int i=0; i<NSAMPLES; i++) {
- c += tex2D(Image, IN.TexCoord[i]);
- }
- c /= NSAMPLES;
- return c;
- }
-
- ")
-
-